package com.test;

import com.test.R;
import android.os.Bundle;
import android.app.TabActivity;
import android.content.Intent;
import android.widget.TabHost;
import android.view.LayoutInflater;

public class app extends TabActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        TabHost tabHost = getTabHost();
        LayoutInflater.from(this).inflate(R.layout.main, tabHost.getTabContentView(), true);
        
        tabHost.addTab(tabHost.newTabSpec("main_tab_1")
        		.setIndicator("tab1")
        		.setContent(R.id.main_tab_1));
        
        tabHost.addTab(tabHost.newTabSpec("main_tab_2")
        		.setIndicator("list1")
        		.setContent(new Intent(this, dynamicList.class)));
        
        tabHost.addTab(tabHost.newTabSpec("main_tab_3")
        		.setIndicator("list2")
        		.setContent(new Intent(this, exampleList.class)));
    }
}